package com.byit.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.byit.domain.AppUserAuthentication;
import com.byit.mapper.AppUserAuthenticationMapper;
import com.byit.service.IAppUserAuthenticationService;
import com.byit.utils.PageUtil;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 企业认证 服务层实现
 * 
 * @author tjm
 * @date 2019年1月7日
 */
@Service
public class AppUserAuthenticationServiceImpl extends ServiceImpl<AppUserAuthenticationMapper, AppUserAuthentication> implements IAppUserAuthenticationService {

    @Override
    public Page<JSONObject> selectPageData(Page<AppUserAuthentication> pageInfo, Map<String, Object> ok) {
        List<JSONObject> list = this.baseMapper.selectDataPage(pageInfo,ok);
        Page<JSONObject> page = PageUtil.transform(pageInfo);
        page.setRecords(list);
        return page;
    }
}
